package com.gxsyh.nantie.user.management.provider.service.impl;

import com.gxsyh.nantie.user.management.provider.domain.UserInfoList;
import com.gxsyh.nantie.user.management.provider.mapper.UserInfoListMapper;
import com.gxsyh.nantie.user.management.provider.service.UserInfoListService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @email yom535@outlook.com
 * @author: 刘锋嘉(Liu Fengjia)
 * @date: 2020/1/3
 * @time: 15:00
 * @Description:
 */
@Service
public class UserInfoListServiceImpl implements UserInfoListService {
    @Resource
    UserInfoListMapper userInfoListMapper;
    @Override
    public List<UserInfoList> getUserInfoList() {
        return userInfoListMapper.getUserInfoList();
    }

    @Override
    public List<UserInfoList> getUserInfoListSearch(String search) {
        return userInfoListMapper.getUserInfoListSearch(search);
    }

    @Override
    public List<UserInfoList> departmentUserListOnDepartmentId(Long departmentId) {
        return userInfoListMapper.departmentUserListOnDepartmentId(departmentId);
    }

    @Override
    public List<UserInfoList> selectPeopleWhoHaveNotJoinedTheDepartment() {
        return userInfoListMapper.selectPeopleWhoHaveNotJoinedTheDepartment();
    }

    @Override
    public List<UserInfoList> selectSubsetUser(String selectText, List parentId) {
        return userInfoListMapper.selectSubsetUser(selectText,parentId);
    }
}
